<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Description: 模型基类
 *
 * @author      Eden
 * @datetime    2016/11/26 16:10
 * @copyright   Beijing CmsTop Technology Co.,Ltd.
 */

class ADM_Model extends CI_Model
{
    // 错误提示
    private $error = '';

    /**
     * 继承基类方法
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * 设置错误消息
     * @param string $error
     */
    protected function setError($error = '')
    {
        $this->error = $error;
    }

    /**
     * 获取错误消息
     * @return string
     */
    public function getError()
    {
        return $this->error;
    }

}
